import { Component } from '@angular/core';

import { Hero3 } from './hero3';
import { Hero3Service } from './hero3.service';

@Component({
  selector: 'hero3-list',
  template:`
  <div *ngFor="let hero of heroes3">
    {{hero.id}} - {{hero.name}}
  </div>
  `
})

export class Hero3ListCompoent {
  heroes3: Hero3[];
  construct(hero3Service: Hero3Service) {
    this.heroes3 = hero3Service.getHeroes3();
  }
}
